const Mock = require('mockjs')

// 模拟后台传递的没有戴口罩的数据
const data = Mock.mock({
  'items|10': [{
    id: '@increment(1)',
    name: '@cname',
    'sex|1': ['男', '女'],
    email: '@email()',
    'mask_warning|1': ['Yes', 'No'],
    captured_time: '@datetime("2021-MM-dd HH:mm:ss")'
  }]
})

module.exports = [
  {
    url: '/facemaskadmin/nomask/list',
    type: 'get',
    response: config => {
      const items = data.items
      return {
        code: 200,
        data: {
          total: items.length,
          items: items
        }
      }
    }
  },
//   {
//       url: '/face-mask-Statistics/nomask/month/list',
//       type:'get',
//       response: config => {
//           const items = data.items
//           return {
//               code: 200,
//               data: {
//                   total: items.length,
//                   items: items
//               }
//           }
//       }  
//   }
]
